<script setup>

</script>
<template>
    <div class="message-item-box">
        <img src="@/assets/images/apply_for.svg" alt="">
        <!-- audit.svg 审核-->
        <!-- over_time.svg 超时 -->
        <div class="item-content">
            <div>
                <h2>解决方案</h2>
                <span>2023.06.20 13:25</span>
            </div>
            <div class="is-read">
                <span>王某某设定您为【方案名称A】的可见人，请及时查看！</span>
            </div>
        </div>
    </div>
</template>
<style lang='scss' scoped>
.message-item-box {
    display: flex;
    align-items: center;
    padding: 18px;
    width: 100%;
    height:var(--height);
    background-color: var(--fff--363636);
    margin-bottom: 15px;
    transition: all 1s ease;

    &>img {
        display: block;
        width: 50px;
        height: 50px;
        margin-top: 3px;
    }

    .item-content {
        flex: 1;
        height: 100%;
        margin-left: 16px;

        &>div {
            &:nth-child(1) {
                display: flex;
                justify-content: space-between;

                h2 {
                    font-size: 16px;
                    font-weight: 800;
                }
            }

            &:nth-child(2) {
                display: flex;
                align-items: center;
                justify-content: space-between;
                font-size: 14px;
                font-weight: 400;
                color: var(--575757-fff);
                margin-top: 10px;
                padding-right: 15px;

                &.is-read::after {
                    content: "";
                    display: block;
                    width: 10px;
                    height: 10px;
                    background: #E20944;
                    opacity: 1;
                    border-radius: 50%;
                }
            }
        }
    }
}

@media screen and (max-width: 1648px) {
    .message-item-box {
        padding: 12px;
        margin-bottom: 15px;
        &>img {
            display: block;
            width: 46px;
            height: 46px;
            margin-top: 0;
        }
        .item-content {
            margin-left: 13px;
            &>div {
                &:nth-child(1) {
                    h2 {
                        font-size: 15px;
                    }
                }

                &:nth-child(2) {
                    font-size: 13px;
                    margin-top: 12px;
                    padding-right: 15px;
                    &.is-read::after {
                        width: 8px;
                        height: 8px;
                    }
                }
            }
        }
    }
}
</style>